<?php
session_start();
header ("Content-type: image/png");
$_img = imagecreatefrompng('images/fond_verif_img_2.png');
$arriere_plan = imagecolorallocate($_img, 0, 0, 0);
$avant_plan = imagecolorallocate($_img, 255, 255, 255);

# Generation captcha
@require 'kernel/Captcha.class.php';
$captcha = new Captcha();
$captcha->create();
$nombre = $captcha->nombre;

imagestring($_img, 5, 18, 8, $nombre, $avant_plan);
imagepng($_img);
?>